<!--
 * Description: FD 基本信息
 * Company: 联宝（合肥）电子科技有限公司
 * Author: Qiuxue.Wu
 * Date: 2020/06/10 16:00
-->

<template>
  <div>
    <!--数据表单-->
    <el-form
      label-position="left"
      label-width="140px"
      :model="inputData"
      size="mini"
      style="margin-top: 10px"
    >
      <!-- ---------------FD基本信息START------------------ -->
      <el-row>
        <el-col :span="24">
          <el-form-item
            label="ServerBOM基本信息"
            label-width="160px"
            style="background: #c9d2ca;padding-left:20px"
          />
        </el-col>
      </el-row>
      <el-row style="padding-left:20px">
        <!--RFQ编号-->
        <el-col :span="6">
          <el-form-item label="ServerBOM ID">
            <span>{{ inputData.serverBomId }}</span>
          </el-form-item>
        </el-col>

        <!--RFQ版本-->
        <el-col :span="6">
          <el-form-item label="ServerBOM版本">
            <span>{{ inputData.version }}</span>
          </el-form-item>
        </el-col>

        <!--RFQ名称-->
        <el-col :span="6">
          <el-form-item label="ServerBOM名称">
            <span>{{ inputData.serverBomName }}</span>
          </el-form-item>
        </el-col>
        <!--任务编号-->
        <el-col :span="6">
          <el-form-item label="任务编号">
            <span>{{ inputData.taskId }}</span>
          </el-form-item>
        </el-col>

        <!--任务负责人-->
        <el-col :span="6">
          <el-form-item label="任务负责人">
            <span>
              {{ $store.getters['user/getUserNameById'](inputData.taskOwner) || $t('result.none') }}
            </span>
          </el-form-item>
        </el-col>
        <!--描述-->
        <el-col :span="6">
          <el-form-item label="备注">
            <span>{{ inputData.remark }}</span>
          </el-form-item>
        </el-col>

        <!--创建时间-->
        <el-col :span="6">
          <el-form-item label="创建时间">
            <span>{{ inputData.beginTime }}</span>
          </el-form-item>
        </el-col>

        <!--结束时间-->
        <el-col :span="6">
          <el-form-item label="结束时间">
            <span>{{ inputData.endTime }}</span>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'FdDataBaseView',
  props: {
    inputData: {
      type: Object,
      default: () => {}
    }
  }
}
</script>

<style scoped>
.el-form-item__content span {
  margin-left: 5px;
  color: blue;
}
</style>
